package com.wyt.dao;

import com.wyt.entity.Employee;
import com.wyt.entity.IUemp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Integer eNumber);

    int insert(IUemp emp);

    int xgmm (@Param("eNumber") String eNumber,@Param("password") String password);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer eNumber);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(IUemp emp);

    Employee login(@Param("enumber") String enumber, @Param("password") String password);

    int updateStatus(@Param("eStatus") Integer eStatus, @Param("eNumber") Integer eNumber);

    Integer selectByNameandNumber(@Param("eNumber")String eNumber,@Param("eName") String eName);

    //查询员工的住址
    List<Employee> selectAllByEAddressAndEStatusAndEStatus();


}